package cc.rengu.redp.bizimpl.upmp.service;

import cc.rengu.redp.bizimpl.upmp.domain.BBaseProdInfo;
import cc.rengu.redp.common.domain.QueryRequest;
import cc.rengu.redp.common.exception.RedpException;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 刘玉亮.LL
 * @since 2021-06-10
 */
public interface IBBaseProdInfoService extends IService<BBaseProdInfo> {

    String getOprMenuId();

    String getOprMenuName();

    String getWebNextUrl();

    String getOprBtnNamePrefix();

    IPage<BBaseProdInfo> findByPage(QueryRequest request, BBaseProdInfo info);

    List<BBaseProdInfo> findByBaseProdCode(String instId, String prodStatus, String baseProdCode);

    @Transactional
    void update(BBaseProdInfo entity) throws RedpException;

    Map<String,Object> getEdit(String baseProdCode, String instId) throws RedpException;

    BBaseProdInfo findByUK(String instId, String baseProdCode);
}
